package me.zachwhaley.android.utils;

import android.app.Activity;
import android.os.Build;

public abstract class ActivityHelper
{

	protected Activity activity;
	
	protected ActivityHelper(Activity activity)
	{
		this.activity = activity;
	}

	public static final ActivityHelper createInstance(Activity activity)
	{
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH)
		{
			return new ActivityHelperICS(activity);
		}
		else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
		{
			return new ActivityHelperHoneycomb(activity);
		}
		else
		{
			return new ActivityHelperBase(activity);
		}
	}

	public abstract boolean isTablet();
	
}
